<?php  if (!defined('SYSPATH')) exit('No direct script access allowed');
/**
 * Extend URL helper functions for fbook application porting
 */

//require_once( APPPATH . 'helpers/assetsHashmap.php'); - automatically included

class url extends url_core{
	
	public static function cdn_url($asset) {
        $cdn_url = self::cdn_base_url();
        $cdn_html_url = $cdn_url . 'html/';
        return $cdn_html_url . $asset;
	}
			
    public static function cdn_base_url(){
        $cdn_url = Kohana::config('core.cdn_url');
        if(empty($cdn_url)){
                $cdn_url = url::base_url();
        }
        return $cdn_url;
    }
	    
	public static function base_url(){
            $base_url = url::base();
            return $base_url;
	}
	
}